﻿using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;


/// <summary>
/// 管理员表
/// </summary>
[Table("Admin")]
public class AdminAggregate : AggregateRoot<AdminAggregate, int>
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public override int ID { get; set; }
    /// <summary>
    /// 账号
    /// </summary>
    [StringLength(255)]
    public string AdminName { get; set; }
    /// <summary>
    /// 密码
    /// </summary>
    [StringLength(255)]
    public string AdminPass { get; set; }
    /// <summary>
    /// 状态 0正常 1冻结
    /// </summary>
    public int Status { get; set; }

    /// <summary>
    /// 管理员角色权限信息
    /// </summary>
    [StringLength(500)]
    public string  Roles { get; set; }
}

